package com.longcai.cm.service;

import com.longcai.cm.base.service.BaseServiceIface;
import com.longcai.cm.domain.JaMemberVip;
import com.longcai.cm.domain.vm.MemberVipViewModel;
import com.longcai.cm.domain.vm.VipManagerViewModel;

/**
 * @author LBX
 */
public interface JaMemberVipService extends BaseServiceIface<JaMemberVip> {

    /**
     * 查询是否VIP
     *
     * @param memberId 用户id
     * @return true/false
     */
    Boolean isVip(Integer memberId);

    MemberVipViewModel getVipInfo(Integer id);

    /**
     * 购买VIP
     *
     * @param vipId    会员
     * @param memberId 用户
     */
    void addVip(String vipId, Integer memberId);
}